{% extends 'CouponBundle:Coupon:layout.html.twig' %}

{% block title %}优惠码设置 - {{ parent() }}{% endblock %}

{% set menu = 'coupon_setting' %}

{% block main %}
	{{ web_macro.flash_messages() }}

	<div class="page-header clearfix">
	    <h1 class="pull-left">优惠码设置</h1>
	</div>

	<form class="form-horizontal" method="post" id="coupon-setting-form" novalidate>
	  <div class="row form-group">
	    <div class="col-md-2 control-label">
	      <label >优惠码状态</label>
	    </div>
	    <div class="controls col-md-7 radios">
	      {{ radios('enabled', {1:'开启', 0:'关闭'}, couponSetting.enabled|default(0)) }}
	    </div>
	  </div>

	  <div class="row form-group">
	    <div class="col-md-2 control-label"></div>
	    <div class="controls col-md-8">
	      <button type="submit" class="btn btn-primary">提交</button>  
	    </div>
	  </div>

	  <input type="hidden" name="_csrf_token" value="{{ csrf_token('site') }}">
	</form>

{% endblock %}